import javax.swing.JToolBar;

public class FileMenu extends JToolBar
  {
  private Machine machine;
  private Open open;
  private Save save;
  private SavePisa savePisa;
  private Paste paste;
  private Copy copy;
  private CopyPisa copyPisa;
  private Info info;
  public FileMenu(Machine machine)
    {
    this.machine=machine;

    open=new Open(machine);
    save=new Save(machine);
    savePisa=new SavePisa(machine);
    paste=new Paste(machine);
    copy=new Copy(machine);
    copyPisa=new CopyPisa(machine);
    info=new Info(machine);

    add(open);
    add(save);
    add(savePisa);
    add(paste);
    add(copy);
    add(copyPisa);
    add(info);
    }
  public void setEnabled(boolean set)
    {
    save.setEnabled(set);
    savePisa.setEnabled(set);
    copy.setEnabled(set);
    copyPisa.setEnabled(set);
    }
  }
